fix: make Parquet file schema type coercion work on nested schemas - #25193
Conversation
|
cc @adriangb - this is closely related with the nested schema pruning work that is ongoing. We discovered this by investigating a 2x slowdown on delta-rs next vs old |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #25193 +/- ##
========================================
Coverage 81.90% 81.91%
========================================
Files 1134 1134
Lines 425261 425481 +220
Branches 425261 425481 +220
========================================
+ Hits 348325 348535 +210
- Misses 56295 56301 +6
- Partials 20641 20645 +4 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
could some of these be SQL / SLT tests? ci is red, it might not be this prs fault but could you rebase and re-run please? |
96d144b to
d93b5b9
Compare
- ATM, the Parquet file schema type coercion applies view transforms for example only on top-level fields, but not on nested fields. - For some Parquet schemas, where we request a view transform for a nested field, this translated to an unmodified schema passed to the reader. Then, when we try to apply predicates on the actual data, the actual predicate execution needs a cast, because the schemas are different.
d93b5b9 to
4ba5397
Compare
|
@adriangb fixed fmt, checking rust CI build. |
adriangb
left a comment
There was a problem hiding this comment.
you are right, I’m sorry for the unreasonable ask!
Which issue does this PR close?
Rationale for this change
What changes are included in this PR?
apply_file_schema_type_coercionsfunction to work on nested fieldsWhat is the testing strategy for this PR?
Are there any user-facing changes?